{assign var=i value=1}
<ul class="browseListing">
	{foreach from = $browseItems item = browseItem name=browseItems}
        {if ( ($GLOBALS.settings.enableBrowseByCounter && $browseItem.count > 0 || !$GLOBALS.settings.enableBrowseByCounter) && $i <= $recordsNumToDisplay )}
            {assign var=i value=$i+1}
			<li>
                <a class='browseItem' href="{$GLOBALS.site_url}/browse-by-city/{$browseItem.url}/">[[{$browseItem.caption|truncate:28:"...":true}]]
                    {if $GLOBALS.settings.enableBrowseByCounter}<span class="blue">({$browseItem.count})</span>{/if}
                </a>
            </li>
			{if $smarty.foreach.browseItems.iteration is div by $columns}</ul><ul class="browseListing">{/if}
		{/if}
	{foreachelse}
		<li>[[There are no listings with requested parameters in the system.]]</li>
	{/foreach}
</ul>